

export interface IAudioEngine {
    getMaxAudioInstance(): number;

    playMusic(res: any, isLoop: boolean): number;

    setFinishCallback(audioId: number, callback: () => void): void;

    pauseMusic(): void;

    resumeMusic(): void;

    stopMusic(): void;

    setMusicVolume(volume: number): void;

    isMusicPlaying(): boolean;


    playEffect(res: any, count: number): number;
    pauseEffect(audioId: number): void;
    stopEffect(audioId: number): void;
    resumeEffect(audioId: number): void;

    setEffectsVolume(n: number): void;
}